﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using STLGROUP.Layers.Presentations.FormBase;
using STLGROUP.Layers.Common;

namespace QuanLyBanHang
{
    /// <summary>
    /// CF001 - Danh Muc Chuc Vu
    /// </summary>
    public partial class CF001 : frmCatalogBase
    {
        #region Constructors

        public CF001()
        {
            InitializeComponent();
            UICommon.AddTrackingColumn(dgvChucVu);
            //UICommon.ShowMessegeDataNotFound();
        }

        #endregion

        #region Protected Methods

        protected override void LoadData()
        {
            this._bindingSource.DataSource = Cache.Context.DM_ChucVu;
            dgvChucVu.DataSource = _bindingSource;

            base.LoadData();
        }

        protected override void AddDataBinding()
        {
            txtIDChucVu.DataBindings.Add(Const.BIND_TEXT, _bindingSource, "IDChucVu", true);
            txtTenChucVu.DataBindings.Add(Const.BIND_TEXT, _bindingSource, "TenChucVu", true);
            base.AddDataBinding();
        }

        #endregion
    }
}
